//
//  JCClubModel.h
//  SquashSpark
//
//  Created by 郭吉成 on 2017/11/23.
//  Copyright © 2017年 Coollang-YF. All rights reserved.
//

#import <Foundation/Foundation.h>
@class JCClubMessageModel;
@class JCClubInfoSportItem;
@class JCClubMemberModel;

@interface JCClubModel : NSObject

@property (nonatomic, strong) NSString *clubID;
@property (nonatomic, strong) NSString *ownerID;
@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSString *describe;
@property (nonatomic, strong) NSURL *banner;
@property (nonatomic, strong) NSURL *headIcon;
@property (nonatomic, strong) NSString *address;
@property (nonatomic, strong) NSString *clubPhone;
@property (nonatomic, strong) NSString *personalPhone;
@property (nonatomic, strong) NSString *recommed;
@property (nonatomic, strong) NSString *creatTime;
@property (nonatomic, strong) NSString *updateTime;
@property (nonatomic, strong) NSString *duration;
@property (nonatomic, strong) NSString *memberCount;
@property (nonatomic, strong) NSString *rankNumber;
@property (nonatomic, strong) NSArray <JCClubMessageModel *> *messageList;
@property (nonatomic, strong) JCClubInfoSportItem *lastWeekActiveTarget;//上周目标
@property (nonatomic, strong) JCClubInfoSportItem *curWeekActiveTarget;//我本周完成情况
@property (nonatomic, strong) JCClubInfoSportItem *clubWeekTarget;//俱乐部本周目标
@property (nonatomic, strong) NSString *curWeekFinishedCount;   //本周完成的人员个数
@property (nonatomic, strong) NSString *curWeekTotalActive; //总参与个数
@property (nonatomic, strong) NSString *lastWeekFinishedCount;//上周完成的人员个数
@property (nonatomic, strong) NSString *lastWeekTotalActive;//上周参与个数
@property (nonatomic, strong) NSMutableArray <JCClubMemberModel *> *rankList;

+ (JCClubModel *)creatModelWithData:(NSDictionary *)dataDic;
+ (NSDictionary *) creatFindClubList:(NSDictionary *)sourceDic;

@end






/**
 俱乐部运动信息模型（圆环数据）
 */
@interface JCClubInfoSportItem : NSObject

@property (nonatomic, strong) NSString *duration;
@property (nonatomic, strong) NSString *swings;
@property (nonatomic, strong) NSString *activeDays;

+ (JCClubInfoSportItem *)creatModelWithData:(NSDictionary *)dataDic;

@end



